<?php
namespace app\Controller;

class admin extends Controller{
    public function index()
    {
        $data = [
            ['name' => '张三','age' => 16],
            ['name' => '李四','age' => 18],
            ['name' => '王五','age' => 11]
        ];
        $this->assign('data', $data);
        $this->display();

    }
}